package com.atguigu.boot.entities;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName Customer
 * @Description 此类描述:
 * @Author dangchen
 * @DateTime 2022-09-15 10:11
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("顾客信息entities")
public class Customer implements Serializable {
    @ApiModelProperty(value = "主键ID",hidden = true)
    private Integer id;
    @ApiModelProperty("顾客姓名")
    private String cname;
    @ApiModelProperty("顾客年龄")
    private Integer age;
    @ApiModelProperty("顾客手机")
    private String phone;
    @ApiModelProperty("顾客性别,0-女|1-男")
    private Byte sex;
    @ApiModelProperty(value = "顾客生日",hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss",timezone = "GMT+8")
    private Date birth;
}
